package com.walleipt.demo.aop.customAopSimple.logger;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class BeforeLoggerInterceptor implements MethodInterceptor {

	public Object invoke(MethodInvocation invocation) throws Throwable {
		
		System.err.println("intercept-方法执行前");
		try
		{
			return invocation.proceed();
		}
		finally {
			System.err.println("intercept-方法执行后");
		}
	}

}
